#pragma warning(disable:4996)
#pragma warning(disable:6031)

#include "Stack.h"
#include "Queue.h"

int main()
{
	//Stack<int> st;
	//st.push(1);
	//st.push(2);
	//st.push(3);
	//st.push(4);

	//while (!st.empty())
	//{
	//	cout << st.top() << ' ';
	//	st.pop();
	//}

	Stack<int> s1;
	Stack<int> s2;
	s1.push(1);
	s1.push(1);
	s1.push(1);
	s1.push(1);

	s2.push(2);
	s2.push(2);
	s2.push(2);
	s2.push(2);

	s1.swap(s2);

	while (!s1.empty())
	{
		cout << s1.top() << ' ';
		s1.pop();
	}

	while (!s2.empty())
	{
		cout << s2.top() << ' ';
		s2.pop();
	}
	return 0;
}